package com.yz.crm.employee.service;

import com.yz.common.model.PageResult;
import com.yz.crm.db.model.BaseCompany;
import com.yz.crm.db.model.BaseEmployee;
import com.yz.crm.employee.model.Employee;
import com.yz.crm.employee.model.EmployeeSearchBean;

/**
 * 员工Service
 * */
public interface EmployeeService {

	/**
	 * 获取员工列表
	 * */
	public PageResult<Employee> listEmployee (EmployeeSearchBean bean);
	
	/**
	 * 获得员工
	 * */
	BaseEmployee get (String id);
	
	/**根据员工用户名和密码获取*/
	BaseEmployee getByUsername (String username , String password);
	
	/**
	 * 保存或者更新
	 * */
	boolean saveOrUpdate (BaseEmployee employee);
	
	/**删除员工*/
	boolean delete (String id);
	
	/**创建并保存公司管理员用户*/
	BaseEmployee createCompanyAdmin (BaseCompany company);
	
}
